// omcpp_console.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"

#include <omcpp/signal.h>
#include <omcpp/delegate.h>
#include <omcpp/mutex.h>
#include <omcpp/assert.h>
#include <windows.h>

class MyTestClass
{
public:
	void my_test_fnc(int count, char* message)
	{
		for(int i = 0; i < count; i++)
		{
			OutputDebugStringA(message);
		}
	}
};

int fnc()
{
	MyTestClass test;

	omcpp::signal<int, char*> my_test_signal;
	my_test_signal.connect(&test, &MyTestClass::my_test_fnc);
	my_test_signal.emit(5, "La super prueba\n");
	return 0;
};

int _tmain(int argc, _TCHAR* argv[])
{
	omcpp_assert(false);
	return fnc();
}